package com.neusoft.dbman.comp.dao;

import java.util.List;

import com.neusoft.dbman.comp.model.bean.Projectuser;

public interface ProjectuserDao {

	/**
	 * 根据数据库ID 获取所有的项目信息
	 * 
	 * @param databaseId
	 * @return
	 * @throws Exception
	 */
	public List<Projectuser> queryProjectUsersByDataBaseId(String databaseId)
			throws Exception;

	/**
	 * 根据数据库用户名 获取所有的项目信息
	 * 
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public List<Projectuser> queryProjectUsersByUserName(String username)
			throws Exception;

	/**
	 * 根据数据库名称和用户名查询
	 * @param databaseId
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public List<Projectuser> queryProjectUsersByUserName(String databaseId,
			String username) throws Exception;
	
	
	
	/**
	 * 根据项目编号查询
	 * @param databaseId
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public List<Projectuser> queryProjectUsers(String databaseId,
			String username) throws Exception;
	
	/**
	 * 
	 * 插入ProjectUser
	 * 
	 * @param projectuser
	 * @return
	 * @throws Exception
	 */
	public int insertProjectUser(Projectuser projectuser) throws Exception;

}
